<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
    div{
        width: 200px;
        height: 200px;
        background: rgb(244, 103, 237);
        margin-bottom: 20px;
    }
    .box1{
        /* 设置内边距 */
        padding: 50px;
        padding: 50px 50px;
        padding: 50px 50px 50px;
        padding: 50px 50px 50px 50px;
        padding-top: 50px;
        padding-right: 50px;
        padding-bottom: 50px;
        padding-left: 50px;
        background: yellowgreen;
    }
    .box2{
        /* 设置盒子以边框为界限 */
        box-sizing: border-box;
        background: salmon;
    }
    .box3{
        background: wheat;
        border: 50px solid rgb(61, 247, 238);
        border-top: 50px dashed rgb(232, 242, 41);
        border-right: 50px double rgb(73, 247, 105);
        border-bottom: 50px dotted rgb(91, 133, 246);
        border-left: 50px solid rgb(247, 52, 139);
    }
    .box4{
        /* 设置外边距 */
        margin: 50px;
        margin: 50px 50px;
        margin: 50px 50px 50px;
        margin: 50px 50px 50px 50px;
        margin-top: 50px;
        margin-right: 50px;
        margin-bottom: 50px;
        margin-left: 50px;
        background: rgb(148, 40, 243);
    }
    .box5{
        /* 设置圆角边框 */
        border-radius: 50%;
    }
    </style>
</head>
<body>
    <div></div>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3 box5"></div>
    <div class="box4"></div>
</body>
</html>